package nowCoder;

import java.util.Scanner;

public class HJ97 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int num = 0;
        int numz = 0;
        double sum = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            if (x < 0){
                num++;
            }else if (x > 0){
                numz++;
                sum += x;
            }
        }
        System.out.print(num+" ");
        System.out.printf("%.1f",sum == 0 ? 0 : sum/numz);
    }
}
